﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

using JM.JCY.Common;
using JM.JCY.DataAccess;
using JM.JCY.BusinessEntity;

namespace JM.JCY.BusinessComponent
{
    public class PhotoAlbumBC : JCYBusinessComponentBase<PhotoAlbumDA>
    {
        public PhotoAlbumBC()
            : base(new PhotoAlbumDA())
        {
        }

        public void CreateAlbumwithUpload(PhotoAlbumDataSet ds)
        {
            this.DataAccess.CreateAlbumwithUpload(ds);
        }

        public PhotoAlbumDataSet getAlbumDbyAlbumId(int albumId)
        {
            return this.DataAccess.getAlbumDbyAlbumId(albumId);
        }

        public PhotoAlbumSearchDataSet.T_UserCommitteeDataTable GetAllCommitteeUsersById(int committeeId)
        {
            return this.DataAccess.GetAllCommitteeUsersById(committeeId);
        }

        public PhotoAlbumSearchDataSet.T_UserDepartmentDataTable GetAllDepartmentUsersById(int departmentId)
        {
            return this.DataAccess.GetAllDepartmentUsersById(departmentId);
        }

        public PhotoAlbumSearchDataSet.T_AlbumContentDataTable GetAlbumContents(int albumId)
        {
            return this.DataAccess.GetAlbumContents(albumId);
        }
        public PhotoAlbumSearchDataSet.T_SearchLikeDataTable GetObjectLikCount(int objectId, string objType)
        {
            return this.DataAccess.GetObjectLikCount(objectId, objType);
        }

        public PhotoAlbumSearchDataSet.T_AlbumDataTable GetRecentlyUpdatedAlbums(string appType, int appId)
        {
            return this.DataAccess.GetRecentlyUpdatedAlbums(appType, appId);
        }

        public PhotoAlbumSearchDataSet.T_AlbumDataTable GetMostPopularAlbums(string appType, int appId)
        {
            return this.DataAccess.GetMostPopularAlbums(appType, appId);
        }

        public PhotoAlbumSearchDataSet.T_AlbumDataTable GetAllPublicAlbums(string appType, int appId)
        {
            return this.DataAccess.GetAllPublicAlbums(appType, appId);
        }

        public PhotoAlbumSearchDataSet.T_AlbumDataTable GetWorkgroupAlbums(string appType, int appId)
        {
            return this.DataAccess.GetWorkgroupAlbums(appType, appId);
        }

        public PhotoAlbumSearchDataSet.T_AlbumDataTable GetCommitteeAlbums(string appType, int appId)
        {
            return this.DataAccess.GetCommitteeAlbums(appType, appId);
        }

        public PhotoAlbumSearchDataSet.T_AlbumDataTable GetMySelfAlbums(string appType, int appId, int staffId)
        {
            return this.DataAccess.GetMySelfAlbums(appType, appId, staffId);
        }

        public PhotoAlbumSearchDataSet.T_AlbumContentDataTable GetMadieById(int madieId)
        {
            return this.DataAccess.GetMadieById(madieId);
        }

        public PhotoAlbumSearchDataSet.T_AlbumContentDataTable GetMadieByAlbumId(int albumId)
        {
            return this.DataAccess.GetMadieByAlbumId(albumId);
        }

        public PhotoAlbumSearchDataSet.T_SearchLikeDataTable GetLike(int objectId, string objectType)
        {
            return this.DataAccess.GetLike(objectId, objectType);
        }

        public void LikeOfAlbum(PhotoAlbumSearchDataSet ds)
        {
            this.DataAccess.LikeOfAlbum(ds);
        }

        public PhotoAlbumSearchDataSet.T_UserCommitteeDataTable GetUserCommitteeByUserId(int userId)
        {
            return this.DataAccess.GetUserCommitteeByUserId(userId);
        }

        public PhotoAlbumSearchDataSet.T_UserDepartmentDataTable GetUserDepartmentByUserId(int userId)
        {
            return this.DataAccess.GetUserDepartmentByUserId(userId);
        }
    }
}
